package operation;
import House.*;

public class listoperaion implements Inoperation{
    public void work(HouseList houseList) {
        System.out.println("=======房屋列表==========");
        System.out.println("编号  房主  电话  地址  月租  状态（未出租/已出租）");
        House[] houses=houseList.list();
        for (int i = 0; i < houses.length; i++) {
            if(houses[i]==null){
                break;
            }
            System.out.println(houses[i]);
        }
        System.out.println("======显示完毕======");
    }
}
